var GameEntity = Class.extend({
  init: function(id, config){
    this.id = id;
	this.x = config.x;
	this.y = config.y;
	this.w = config.width;
	this.h = config.height;
	this.frame = 0;
	this.sprite = config.sprite;
  }, 
  draw : function (canvas){
	  canvas.ctx.drawImage(this.sprite.image, this.x, this.y);
  }
});